<?php

declare(strict_types=1);

namespace IdaasClient\Middleware;

use IdaasClient\Constants\IdaasConst;
use IdaasClient\Middleware\AuthMiddleware;

class PublicMiddleware extends AuthMiddleware
{
    protected ?bool $enable = true;
    protected ?string $instance = 'default';
    protected ?string $project = 'public';
    protected ?array $resources = [];
    // 是否验证权限
    protected ?bool $isCheckPermission = false;
    protected ?array $allowUserTypes = [IdaasConst::USERR_TYPE_COMM, IdaasConst::USER_TYPE_SUPP, IdaasConst::USER_TYPE_SHOP];
}
